<?php require_once('Connections/sqlaerosnemanje.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>AeroPHPXML :: Nov Projekt</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php
mysql_select_db("aerosnemanje", $sqlaerosnemanje);

$sql = "INSERT INTO `projekti` (`Naziv`) VALUES ('$_POST[naziv_projekta]')";

if (!mysql_query($sql, $sqlaerosnemanje))
  {
  die('Napaka: ' . mysql_error());
  }
echo "<span class=\"myhead\">Nov Projekt</span><br><br>Projekt z nazivom <b>".$_POST[naziv_projekta]."</b> ustvarjen.<br><br><a href='index.php'>&lt;&lt; Nazaj na prvo stran</a>";

mysql_close($sqlaerosnemanje);
?>
</body>
</html>
